package com.wingsfrog.travel.modules.dao;

import com.wingsfrog.travel.modules.entity.User;
import com.wingsfrog.travel.modules.entity.UserTeamRel;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by rankin on 16/3/30.
 */
public interface UserTeamRelDao extends CrudRepository<UserTeamRel, Integer> {
    public UserTeamRel findByMainTaskIdAndUserId(Integer mainTaskId, Integer userId);

    public List<UserTeamRel> findByTeamId(Integer teamId);
    public UserTeamRel findByUserIdAndIsEnable(Integer userId,Boolean enable);
}
